package com.xiaolin.designmode.command;

/**
 * @ClassName ConcreteCommand2
 * @Description 具体命令角色
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/5
 * @Version 1.0
 */
public class ConcreteCommand2 implements Command {
    private Receiver2 receiver2;
    public ConcreteCommand2(Receiver2 receiver2){
        this.receiver2=receiver2;
    }
    @Override
    public void execute() {
        receiver2.action();
    }
}
